@extends('auth.master')
@section('content')
{{Form::open(array('url'=>'auth/login','name'=>'login-form','class'=>'login-form','method'=>'post'))}}
    <div class="row form-group">
        @if(Session::has('flash_mess'))
            <div class="col-md-12">
                <label for="" class="control-label">
                    <span style="font-family:Tahoma; font-size:12px; font-weight:600;color:#F00;">{{Session::get('flash_mess')}}
                    </span>
                </label>
            </div>
        @endif
        @if (Session::has('success_mess'))
            <div class="col-md-12">
                <label for="" class="control-label">
                    <span style="font-family:Tahoma; font-size:12px; font-weight:600;color:#4dac46;">{{Session::get('success_mess')}}
                    </span>
                </label>
            </div>
        @endif
        <div class="col-md-12">
            <label for="" class="control-label">
                <span style="font-family:Tahoma; font-size:12px; font-weight:600;">
                <span style="color:#F00;">*</span> Tên đăng nhập</span>
            </label>
            {{Form::text("txtusername",Input::old("txtusername"),array("placeholder"=>"Tên đăng nhập","class"=>"form-control","tabindex"=>"1"))}}
        </div>
        <div class="col-md-12">
            <label for="" class="control-label">
                <span style="font-family:Tahoma; font-size:12px; font-weight:600;">
                <span style="color:#F00;">*</span> Mật khẩu</span>
                <a href="{{URL::route('auth.get.forgot')}}" style="font-size:12px;color:#DF0000;">&nbspQuên mật khẩu</a>
            </label>
            {{Form::password("txtpassword",array("placeholder"=>"Mật khẩu","class"=>"form-control","tabindex"=>"2"))}}
        </div>
        <div class="col-md-12">
            <label for="" class="control-label" style="margin-top:15px !important;margin-bottom: 0px !important;">
                <span style="font-family:Tahoma; font-size:12px;">Chưa có tài khoản </span>
                <a href="{{URL::route('auth.get.dangky')}}" style="font-size:12px;color:#0043DF;">&nbspĐăng ký</a>
            </label>
        </div>
    </div><!-- End .form-group -->  
    <div class="form-group">
        <div class="col-md-12">
            <div class="col-md-8">
                <label style="color:#999;margin-left:-25px;font-size:13px; font-family:Arial;">
                {{Form::checkbox('remember',1,(Input::old('remember') == 1) ? true : false,array('tabindex'=>3))}}
                 Duy trì đăng nhập
                </label>
            </div>
            <div class="col-md-4">
                {{Form::submit("Đăng nhập",array('tabindex'=>4,'class'=>'btn btn-primary'))}}
            </div>
        </div>
    </div><!-- End .form-group -->
{{Form::close()}}
@stop